<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<!-- <script type="text/javascript">

if(memberdto.getMember_id() != null ){ //아이디가 존재하면 
	if(pw.equals(memberdto.getMember_pw())){ //클라이언트 pw 와 db pw를 비교해서 일치하면 
		System.out.println("로그인 성공");
		session.setAttribute("sessionId", memberdto.getMember_id());	//성공하면 세션 
	}else{
		System.out.println("비밀번호를 확인해 주세요");
	}
}else{
	System.out.println("아이디를 확인해 주세요");
}

</script> -->

<c:if test="${su!=null}">
<script type="text/javascript">
	alert("아이디와 비밀번호를 확인해주세요 ");
</script>
	
</c:if>

</head>
<body><h1>로그인!!!!</h1>

<!--

 -->
<form action="loginprocess?login_id=loginprocess.login_id.value+&+login_pw=loginprocess.login_pw.value" method="get" name="loginprocess">
<table>
	<tr>
		<td>아이디<input type="text" name="login_id"></td>
		<td>비밀번호<input type="password" name="login_pw"></td>
	</tr>
	<tr>
		<td><input type="submit" value="로그인" ></td>
		<td><input type="button" value="회원가입" onclick="location.href='join'"></td>
		</tr>
	<tr>
		<td><input type="button" value="아이디  찾기" onclick=""></td>
		<td><input type="button" value="비밀번호 찾기" onclick=""></td>
	</tr>
</table>


</form>
</body>
</html>